package movee.spring.app.template.domain.dao;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 *
 *
 * @author movee
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@DynamicUpdate
@DynamicInsert
@Entity
@Table(name = "t_order", indexes = {
        @Index(name = "idx_name", columnList = "name"),
        @Index(name = "idx_creator", columnList = "creator"),
        @Index(name = "idx_updater", columnList = "updater"),
        @Index(name = "idx_create_time", columnList = "create_time"),
        @Index(name = "idx_update_time", columnList = "update_time")
})
public class OrderDao extends BaseOrderDao {



}

